'use strict';
var is_exist_element = function(collection,element){
    let result=[];
    for(let i in collection){
        if(i%2==0){
            result.push(collection[i]);
        }
    }
    result=result.some(function(x){
        return (x==element);
    });
    console.log(result);
    return result;
}
module.exports = is_exist_element;
is_exist_element([1, 2, 3, 4, 5, 6],4);
